﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MN.Framework.Common;

namespace Mn.Framework.Web.Mvc
{
    public abstract class MnHttpApplication : System.Web.HttpApplication
    {
        private static MnHttpContext _startHttpContext;

        public static MnHttpContext StartHttpContext
        {
            get { return _startHttpContext; }
        }

        public static BaseContext GetDbContext()
        {
            return StartHttpContext.GetDbContext();
        }

        public MnHttpApplication(IMnHttpContext mnHttpContext)
        {
            _startHttpContext = (MnHttpContext)mnHttpContext;
        }

        //public abstract IMnHttpContext StartApplication();

    }
}
